package com.sym.glide;

import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;

import com.sym.glide.extension.GlideApp;

import androidx.appcompat.app.AppCompatActivity;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }

    public void showGif(View view) {
        ImageView imageView = findViewById(R.id.test_img);
        GlideApp.with(this)
                .asGif2()
                .load(R.mipmap.a11)
                .into(imageView);
    }
}